let name = "A模块";
const sum = function sum(...params) {
    let len = params.length;
    if (len === 0) return 0;
    if (len === 1) return params[0];
    return params.reduce((res, item) => res + item);
};

/* 模块导出 */
module.exports = {
    sum
};